<?php
require_once 'Smarty/Smarty.class.php';
class SmartyGea extends Smarty {
	function SmartyGea() {
		$this->Smarty();
		$this->template_dir = PROJECT_DIR . 'application/templates/';
		$this->config_dir = PROJECT_DIR . 'application/config/';
		$this->cache_dir = PROJECT_DIR . 'application/cache/';
		$this->compile_dir = PROJECT_DIR . 'application/templates_c/';
		$this->caching = false;
		$this->assign('app_name', PROJECT_NAME);
	}

	function displayInMasterPage($templateName, $masterTemplateName) {
		$contentPlaceHolder = $this->fetch($templateName, true);
		$this->assign('contentPlaceHolder', $contentPlaceHolder);
		$this->display($masterTemplateName);
	}
}
?>